package com.ruoyi.mk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mk.mapper.MkPeizhiMapper;
import com.ruoyi.mk.domain.MkPeizhi;
import com.ruoyi.mk.service.IMkPeizhiService;

/**
 * 配置Service业务层处理
 * 
 * @author yao
 * @date 2021-12-13
 */
@Service
public class MkPeizhiServiceImpl implements IMkPeizhiService 
{
    @Autowired
    private MkPeizhiMapper mkPeizhiMapper;

    /**
     * 查询配置
     * 
     * @param id 配置主键
     * @return 配置
     */
    @Override
    public MkPeizhi selectMkPeizhiById(Long id)
    {
        return mkPeizhiMapper.selectMkPeizhiById(id);
    }

    /**
     * 查询配置列表
     * 
     * @param mkPeizhi 配置
     * @return 配置
     */
    @Override
    public List<MkPeizhi> selectMkPeizhiList(MkPeizhi mkPeizhi)
    {
        return mkPeizhiMapper.selectMkPeizhiList(mkPeizhi);
    }

    /**
     * 新增配置
     * 
     * @param mkPeizhi 配置
     * @return 结果
     */
    @Override
    public int insertMkPeizhi(MkPeizhi mkPeizhi)
    {
        return mkPeizhiMapper.insertMkPeizhi(mkPeizhi);
    }

    /**
     * 修改配置
     * 
     * @param mkPeizhi 配置
     * @return 结果
     */
    @Override
    public int updateMkPeizhi(MkPeizhi mkPeizhi)
    {
        return mkPeizhiMapper.updateMkPeizhi(mkPeizhi);
    }

    /**
     * 批量删除配置
     * 
     * @param ids 需要删除的配置主键
     * @return 结果
     */
    @Override
    public int deleteMkPeizhiByIds(Long[] ids)
    {
        return mkPeizhiMapper.deleteMkPeizhiByIds(ids);
    }

    /**
     * 删除配置信息
     * 
     * @param id 配置主键
     * @return 结果
     */
    @Override
    public int deleteMkPeizhiById(Long id)
    {
        return mkPeizhiMapper.deleteMkPeizhiById(id);
    }
}
